package com.vanysoft.business.demo.form.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TDemoForm {
    private String demoformkey;

    private String name;

    private String industry;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date demodate;

    private String delivery;

    private String type;

    private String resource;

    private String remark;

    private String useraccount;

    private Date oprdate;

    public String getDemoformkey() {
        return demoformkey;
    }

    public void setDemoformkey(String demoformkey) {
        this.demoformkey = demoformkey == null ? null : demoformkey.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getIndustry() {
        return industry;
    }

    public void setIndustry(String industry) {
        this.industry = industry == null ? null : industry.trim();
    }

    public Date getDemodate() {
        return demodate;
    }

    public void setDemodate(Date demodate) {
        this.demodate = demodate;
    }

    public String getDelivery() {
        return delivery;
    }

    public void setDelivery(String delivery) {
        this.delivery = delivery == null ? null : delivery.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getResource() {
        return resource;
    }

    public void setResource(String resource) {
        this.resource = resource == null ? null : resource.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public String getUseraccount() {
        return useraccount;
    }

    public void setUseraccount(String useraccount) {
        this.useraccount = useraccount == null ? null : useraccount.trim();
    }

    public Date getOprdate() {
        return oprdate;
    }

    public void setOprdate(Date oprdate) {
        this.oprdate = oprdate;
    }

    @Override
    public String toString() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyy-mm-dd");
        return this.name + "," + this.industry + "," + sdf.format(this.demodate) + "," + this.delivery + "," + this.type + "," + this.resource + "," + this.remark;
    }
}